package cn.tenmg.hibernate.plus.dao.impl;

import org.hibernate.transform.BasicTransformerAdapter;
import org.hibernate.transform.ResultTransformer;

/**
 * 简单结果转换器
 * 
 * @author June wjzhao@aliyun.com
 * 
 * @since 1.0.0
 */
public class SimpleResultTransformer extends BasicTransformerAdapter implements ResultTransformer {

	/**
	 * 
	 */
	private static final long serialVersionUID = 921035523477588474L;

	private static final SimpleResultTransformer INSTANCE = new SimpleResultTransformer();

	public static SimpleResultTransformer getInstance() {
		return INSTANCE;
	}

	@Override
	public Object transformTuple(Object[] tuple, String[] aliases) {
		return tuple[0];
	}

}
